Walker.Crypto.SimpleAESEncryption
Provides simple, sync-based AES-GCM encryption and decryption with a key derived from a password. Includes helpers for secure key generation and basic parsing.
Holds AES-GCM encrypted data and its associated IV.
Fields:
Methods:
Encrypts plain text using AES-GCM. Outputs both the encrypted content and IV.
Parameters:
Returns: AESEncryptedText
Decrypts a previously encrypted value using its IV and the original password. Returns a secure string.
Parameters:
Returns: SecureData
Takes the raw Base64 ciphertext and IV, decrypts it using the password, and returns the plain string.
Parameters:
Returns: string
Creates a secure random byte array of the given size.
Parameters:
Returns: byte[]
Hashes the password with SHA-256 and adjusts the result to the specified byte length.
Parameters:
Returns: byte[]